﻿using MyPetShop.Domain;
using Microsoft.Practices.ServiceLocation;
using NCommon.Data;
using System.Linq;
using NUnit.Framework;

namespace MyPetShop.Domain.Spec
{
	/// <summary>
	/// Description of Shopping_Item.
	/// </summary>
	[TestFixture]
	public class Shopping_Items
	{
		[Test]
		public void AddItemIntoShopping()
		{
			Item item = null;
			
			item = new Item();
			item.ListPrice = 100;
			item.Quantity = 50;
			
			var shopping = new Shopping();
            shopping.AddItem(item, 3);
            Assert.AreEqual(3, shopping.Total);
			
		}
	}
}
